package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Shop;
import com.jojo.bubble.dao.ShopDao;
import com.jojo.bubble.service.ShopService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * 商户表(Shop)表服务实现类
 *
 * @author jojo
 * @since 2023-08-28 13:49:56
 */
@Service("shopService")
public class ShopServiceImpl implements ShopService {
    @Resource
    private ShopDao shopDao;

    @Override
    public int count(Shop record) {
        return this.shopDao.count(record);
    }

    @Override
    public int insert(Shop record) {
        return this.shopDao.insert(record);
    }

    @Override
    public int update(Shop record) {
        return this.shopDao.update(record);
    }

    @Override
    public Shop getInfo(int id) {
        return this.shopDao.queryById(id);
    }

    @Override
    public List<Shop> getList(Shop record) {
        return this.shopDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.shopDao.delete(id);
    }
}
